package com.caoji.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caoji.item.entity.Brand;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandMapper extends BaseMapper<Brand> {
    @Select("SELECT tcb.brand_id FROM heima.tb_category_brand tcb where tcb.category_id=#{id}")
    List<Long> findbycateid(@Param("id") Long id);
}